$(function() {
	addSCToInfils();
});

function addSCToInfils() {
	var yCoordPattern =  /[^,]+\)<\/font>$/;
	var yCoordCleanup = /\)<\/font>/;

	var infTable = $("td.hr[colspan=3]").parent().parent();

	infTable.children('tr').each(function() {
		yCoord = this.children[0].innerHTML.match( yCoordPattern );
		
		if( yCoord && yCoord.length ) {
			yCoord = yCoord[0].replace( yCoordCleanup ,'');
			
			this.innerHTML = this.innerHTML + '<td>SC'+Math.ceil(((-yCoord)+33)/66)+'</td>';
		} else {
			this.innerHTML = this.innerHTML + "<td></td>";
		}
	});
}